<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="SctstbtesisCreateDlg" widgetVar="SctstbtesisCreateDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.CreateSctstbtesisTitle}">

            <h:form id="SctstbtesisCreateForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{sctstbtesisController.selected != null}">

                        <p:outputLabel value="#{myBundle.CreateSctstbtesisLabel_titulo}" for="titulo" />
                        <p:inputText id="titulo" value="#{sctstbtesisController.selected.titulo}" title="#{myBundle.CreateSctstbtesisTitle_titulo}" required="true" requiredMessage="#{myBundle.CreateSctstbtesisRequiredMessage_titulo}"/>

                        <p:outputLabel value="#{myBundle.CreateSctstbtesisLabel_autores}" for="autores" />
                        <p:inputText id="autores" value="#{sctstbtesisController.selected.autores}" title="#{myBundle.CreateSctstbtesisTitle_autores}" required="true" requiredMessage="#{myBundle.CreateSctstbtesisRequiredMessage_autores}"/>

                        <p:outputLabel value="#{myBundle.CreateSctstbtesisLabel_fechagrado}" for="fechagrado" />
                        <p:calendar id="fechagrado" pattern="MM/dd/yyyy" value="#{sctstbtesisController.selected.fechagrado}" title="#{myBundle.EditSctstbtesisTitle_fechagrado}" required="true" requiredMessage="#{myBundle.EditSctstbtesisRequiredMessage_fechagrado}" showOn="button"/>

                        <p:outputLabel value="#{myBundle.CreateSctstbtesisLabel_palabrasclave}" for="palabrasclave" />
                        <p:inputText id="palabrasclave" value="#{sctstbtesisController.selected.palabrasclave}" title="#{myBundle.CreateSctstbtesisTitle_palabrasclave}" required="true" requiredMessage="#{myBundle.CreateSctstbtesisRequiredMessage_palabrasclave}"/>

                        <p:outputLabel value="#{myBundle.CreateSctstbtesisLabel_resumen}" for="resumen" />
                        <p:inputText id="resumen" value="#{sctstbtesisController.selected.resumen}" title="#{myBundle.CreateSctstbtesisTitle_resumen}" required="true" requiredMessage="#{myBundle.CreateSctstbtesisRequiredMessage_resumen}"/>

                        <p:outputLabel value="#{myBundle.CreateSctstbtesisLabel_codificacion}" for="codificacion" />
                        <p:inputText id="codificacion" value="#{sctstbtesisController.selected.codificacion}" title="#{myBundle.CreateSctstbtesisTitle_codificacion}" required="true" requiredMessage="#{myBundle.CreateSctstbtesisRequiredMessage_codificacion}"/>

                        <p:outputLabel value="#{myBundle.CreateSctstbtesisLabel_nombrearchivo}" for="nombrearchivo" />
                        <p:inputText id="nombrearchivo" value="#{sctstbtesisController.selected.nombrearchivo}" title="#{myBundle.CreateSctstbtesisTitle_nombrearchivo}" required="true" requiredMessage="#{myBundle.CreateSctstbtesisRequiredMessage_nombrearchivo}"/>

                        <p:outputLabel value="#{myBundle.CreateSctstbtesisLabel_fecharegistro}" for="fecharegistro" />
                        <p:calendar id="fecharegistro" pattern="MM/dd/yyyy HH:mm:ss" value="#{sctstbtesisController.selected.fecharegistro}" title="#{myBundle.EditSctstbtesisTitle_fecharegistro}" required="true" requiredMessage="#{myBundle.EditSctstbtesisRequiredMessage_fecharegistro}" showOn="button"/>

                        <p:outputLabel value="#{myBundle.CreateSctstbtesisLabel_observaciones}" for="observaciones" />
                        <p:inputText id="observaciones" value="#{sctstbtesisController.selected.observaciones}" title="#{myBundle.CreateSctstbtesisTitle_observaciones}" required="true" requiredMessage="#{myBundle.CreateSctstbtesisRequiredMessage_observaciones}"/>

                        <p:outputLabel value="#{myBundle.CreateSctstbtesisLabel_summary}" for="summary" />
                        <p:inputText id="summary" value="#{sctstbtesisController.selected.summary}" title="#{myBundle.CreateSctstbtesisTitle_summary}" required="true" requiredMessage="#{myBundle.CreateSctstbtesisRequiredMessage_summary}"/>

                        <p:outputLabel value="#{myBundle.CreateSctstbtesisLabel_scthtbnivacadeid}" for="scthtbnivacadeid" />
                        <p:selectOneMenu id="scthtbnivacadeid" value="#{sctstbtesisController.selected.scthtbnivacadeid}" >
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{scthtbnivacadeController.items}"
                                           var="scthtbnivacadeidItem"
                                           itemValue="#{scthtbnivacadeidItem}"
                                           itemLabel="#{scthtbnivacadeidItem.scthtbnivacadeid.toString()}"
                                           />
                            <f:converter binding="#{scthtbnivacadeConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.CreateSctstbtesisLabel_scthtbdatosgenid}" for="scthtbdatosgenid" />
                        <p:selectOneMenu id="scthtbdatosgenid" value="#{sctstbtesisController.selected.scthtbdatosgenid}" required="true" requiredMessage="#{myBundle.EditSctstbtesisRequiredMessage_scthtbdatosgenid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{scthtbdatosgenController.items}"
                                           var="scthtbdatosgenidItem"
                                           itemValue="#{scthtbdatosgenidItem}"
                                           itemLabel="#{scthtbdatosgenidItem.scthtbdatosgenid.toString()}"
                                           />
                            <f:converter binding="#{scthtbdatosgenConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.CreateSctstbtesisLabel_scittbescunid}" for="scittbescunid" />
                        <p:selectOneMenu id="scittbescunid" value="#{sctstbtesisController.selected.scittbescunid}" >
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{scittbescunController.items}"
                                           var="scittbescunidItem"
                                           itemValue="#{scittbescunidItem}"
                                           itemLabel="#{scittbescunidItem.scittbescunid.toString()}"
                                           />
                            <f:converter binding="#{scittbescunConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.CreateSctstbtesisLabel_scaltbtipoinvid}" for="scaltbtipoinvid" />
                        <p:selectOneMenu id="scaltbtipoinvid" value="#{sctstbtesisController.selected.scaltbtipoinvid}" >
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{scaltbtipoinvController.items}"
                                           var="scaltbtipoinvidItem"
                                           itemValue="#{scaltbtipoinvidItem}"
                                           itemLabel="#{scaltbtipoinvidItem.descripcion.toString()}"
                                           />
                            <f:converter binding="#{scaltbtipoinvConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.CreateSctstbtesisLabel_scaltblineinveid}" for="scaltblineinveid" />
                        <p:selectOneMenu id="scaltblineinveid" value="#{sctstbtesisController.selected.scaltblineinveid}" required="true" requiredMessage="#{myBundle.EditSctstbtesisRequiredMessage_scaltblineinveid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{scaltblineinveController.items}"
                                           var="scaltblineinveidItem"
                                           itemValue="#{scaltblineinveidItem}"
                                           itemLabel="#{scaltblineinveidItem.scaltblineinveid.toString()}"
                                           />
                            <f:converter binding="#{scaltblineinveConverter}"/>
                        </p:selectOneMenu>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{sctstbtesisController.saveNew}" value="#{myBundle.Save}" update="display,:SctstbtesisListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,SctstbtesisCreateDialog);"/>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="SctstbtesisCreateDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
